<template>
  <view class="goods-footer">
    <view class="text-btn cancel-btn">
      <text @click="handleClickSave">保存桌码</text>
    </view>
    <view class="text-btn save-btn">
      <text @click="handleClickAdd">添加区域</text>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    handleClickAdd() {
      this.$emit("add");
    },
    handleClickSave() {
      this.$emit("save");
    }
  }
};
</script>

<style scoped lang="scss">
.goods-footer {
  height: 130rpx;
  width: 100%;
  box-sizing: border-box;
  padding: 0 $form-item-left;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  border-top: 1px solid $uni-border-color;
  bottom: 0;
  .cancel-btn {
    color: $uni-text-color-grey;
  }
  .save-btn {
    color: $uni-color-primary;
  }
}
</style>
